package com.example.kt_base.s6

//TODO 104.Kotlin语言的定义泛型类
class KtBase104<T>(private val obj:T){
    fun show()= println("万能输出器：$obj")
}

data class Student(val name:String)
data class Teacher(val name:String)

fun main() {
    val stu1=Student("liMing")
    val tea=Teacher("he")

    KtBase104(stu1).show()
    KtBase104(tea).show()
}

